#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include <QProcess>
// 引入配置文件的头文件
#include <QtCore/QCoreApplication>
#include <QSettings>

#include "qmqtt.h"


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void startVisitor_FRP();

private slots:

    void doProcessMqttSubscribe(QString topic);

    void doProcessMqttReceived(QMQTT::Message msg);

    void doProcessMqttConnected();

    void doProcessMqttDisconnected();

    void on_pBtnConn_clicked();

    void on_pBtnServiceOn_clicked();

    void on_btnClear_clicked();

    void on_btnNormal_clicked();

    void on_btnTest_clicked();

    void on_comboBox_activated(const QString &arg1);

    void on_pBtnDisConn_clicked();

private:
    Ui::MainWindow *ui;

    QMQTT::Client *mqttClient;

    QString m_CurrentAddr;

    QString m_CurrentProductKey;
};
#endif // MAINWINDOW_H
